<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:form>            
            <p:idleMonitor timeout="#{pageControllerJSFBean.timeOut}"   
            onidle="idleDialog.show()" />  
         
         <p:dialog  id="cerrarSession"                     
                    header="#{msg.msg_sesion_expirada}" 
                    widgetVar="idleDialog"
                    modal="true" 
                    closable="false"> 
            
                <h:outputText   value="#{pageControllerJSFBean.usuario} #{msg.msg_volver_iniciar_sesion}"  styleClass="dsb p10" />
           
                <p:commandButton id="confirm" value="#{msg.btn_aceptar}" 
                                 oncomplete="top.location.reload(true)"
                                 actionListener="#{pageControllerJSFBean.cerrarSesion}"  /> 
         </p:dialog>
        </h:form>
    </f:view>
</html>
